function checkadduser(){
	var staff_id=$("#staff_id").val();
	var pwd=$("#pwd").val();
	var dept=$("#dept").val();
	var staff_name=$("#staff_name").val();
	var role=$("#role").val();
	if(staff_id==null||staff_id==''){
		art.dialog({
			title:'提示',
			content:"ID不能為空",
			lock:true,
			ok:function(){},
			width:300
		});
		return false;
	}else if(pwd==null||pwd==''){
		art.dialog({
			title:'提示',
			content:"密碼不能為空",
			lock:true,
			ok:function(){},
			width:300
		});
		return false;
	}else if(dept==null||dept==''){
		art.dialog({
			title:'提示',
			content:"請選擇部門",
			lock:true,
			ok:function(){},
			width:300
		});
		return false;
	}
	else if(role==null||role==''){
		art.dialog({
			title:'提示',
			content:"請選擇角色",
			lock:true,
			ok:function(){},
			width:300
		});
		return false;
	}
	else if(staff_name==null||staff_name==''){
		art.dialog({
			title:'提示',
			content:"請填寫姓名",
			lock:true,
			ok:function(){},
			width:300
		});
		return false;
	}
	else{
		return true;
	}
	
}